package com.zou.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zou.model.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
 * @auth zoujt
 * @date 2021/3/17
 * @Description
 */
public interface UserMapper extends BaseMapper<User> {

    List<User> findAll();

    int addUser(User user);

    int delete(@Param("id") Long id);

    int update(User user);

    User findById(@Param("id") Long id);

}
